#include "map.h"

MAP::MAP()
{
      mapImage=NULL;
}

MAP::~MAP()
{
    if(mapImage)
    {
        delete mapImage;
        mapImage = NULL;
    }
}

void MAP::LoadMap(char *file)
{
    if(mapImage)
    {
        delete mapImage;
    }
    mapImage=new QImage(file);
}



